
package com.scs.application.modules.base.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.scs.application.core.service.ITreeService;
import com.scs.application.modules.base.entity.MaterialCatalog;
import com.scs.application.modules.base.request.MaterialCatalogQueryRequest;
import com.scs.application.modules.base.vo.MaterialCatalogVO;

import java.util.List;


/**
 * 商品品类 service 接口
 *
 */
public interface MaterialCatalogService extends ITreeService<MaterialCatalog> {

    /**
     * 根据id删除品类
     *
     * @param id
     * @return
     */
    boolean deleteById(String id);

    /**
     * 品类树
     *
     * @param request
     * @return
     */
    IPage page(MaterialCatalogQueryRequest request);

    /**
     * 品类树
     *
     * @param request
     * @return
     */
    IPage pageForSupplier(MaterialCatalogQueryRequest request);

    List<MaterialCatalog> list(MaterialCatalogQueryRequest request);

    /**
     * 当前供应商一级品类
     *
     * @param request
     * @return
     */
    List<MaterialCatalog> listForSupplier(MaterialCatalogQueryRequest request);

    List<MaterialCatalogVO> exportList(MaterialCatalogQueryRequest request);
}
